package com.chuangke.dev.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chuangke.dev.model.SysModelTable;

/**
 * 业务 数据层
 * 
 * @author chuangke
 */
@Mapper
public interface SysModelTableMapper extends BaseMapper<SysModelTable>{
	
	/**
	 * 通过information_schema获取table元数据
	 * @param genTable
	 * @return
	 */
    List<SysModelTable> selectTablesFromSchema(SysModelTable genTable);
	
	/**
	 * 通过information_schema获取table元数据
	 * @return
	 */
    List<SysModelTable> selectTablesFromSchemaByNames(String[] tableNames);

	List<SysModelTable> selectAllTablesFromSchema(SysModelTable genTable);
	
}